package Code.SwichDemo;

public class Test3 {
    public static void main(String[] args) {
         int number = 1;

         //Jdk12之后的新特新
         switch (number){
             case 1 -> System.out.println("一");
             case 2 -> System.out.println("二");
             case 3 -> System.out.println("三");
             default -> System.out.println("没有这种选项");
         }
    }
}
